import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        
        if (-1000 <= a && a <= 1000 && -1000 <= b && b <= 1000) {
            
            int maxValue = Math.max(a, b);
            System.out.println(maxValue);
        } else {
            System.out.println("Invalid input");
        }
        
        scanner.close();
    }